package com.steak.business.client;

import com.steak.common.domain.dataobject.tcc.Order;
import com.steak.common.domain.dto.AccountDTO;
import com.steak.common.result.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 刘牌
 * @Title:
 * @date 2022/3/116:25
 */
@FeignClient(value = "cloud-account")
public interface AccountClient {

    @RequestMapping("/account/decreaseBalance")
    Response decreaseBalance(@RequestBody AccountDTO accountDTO);

    @RequestMapping("/account/updateAccountBalanceToZeroById")
    Response updateAccountBalanceToZeroById(@RequestParam Integer userId);

    @RequestMapping("/account/updateAccountBalance")
    Response updateAccountBalance(AccountDTO accountDTO);
}
